using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._3DAnalystTools._3DFeatures._Conversion
{
    /// <summary>
    /// <para>Feature To 3D By Attribute</para>
    /// <para>Creates 3D features using height values derived from the attribute of the input features.</para>
    /// <para>使用从输入要素属性派生的高度值创建 3D 要素。</para>
    /// </summary>    
    [DisplayName("Feature To 3D By Attribute")]
    public class FeatureTo3DByAttribute : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public FeatureTo3DByAttribute()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input  Features</para>
        /// <para>The features that will be used to create 3D features.</para>
        /// <para>将用于创建 3D 要素的要素。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The feature class that will be produced.</para>
        /// <para>将生成的要素类。</para>
        /// </param>
        /// <param name="_height_field">
        /// <para>Height Field</para>
        /// <para>The field whose values will define the height of the resulting 3D features.</para>
        /// <para>其值将定义生成的 3D 要素高度的字段。</para>
        /// </param>
        public FeatureTo3DByAttribute(object _in_features, object _out_feature_class, object _height_field)
        {
            this._in_features = _in_features;
            this._out_feature_class = _out_feature_class;
            this._height_field = _height_field;
        }
        public override string ToolboxName => "3D Analyst Tools";

        public override string ToolName => "Feature To 3D By Attribute";

        public override string CallName => "3d.FeatureTo3DByAttribute";

        public override List<string> AcceptEnvironments => ["XYDomain", "XYResolution", "XYTolerance", "ZDomain", "ZResolution", "ZTolerance", "configKeyword", "extent", "geographicTransformations", "outputCoordinateSystem", "outputZValue", "workspace"];

        public override object[] ParameterInfo => [_in_features, _out_feature_class, _height_field, _to_height_field];

        /// <summary>
        /// <para>Input  Features</para>
        /// <para>The features that will be used to create 3D features.</para>
        /// <para>将用于创建 3D 要素的要素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input  Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The feature class that will be produced.</para>
        /// <para>将生成的要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Height Field</para>
        /// <para>The field whose values will define the height of the resulting 3D features.</para>
        /// <para>其值将定义生成的 3D 要素高度的字段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Height Field")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _height_field { get; set; }


        /// <summary>
        /// <para>To Height Field</para>
        /// <para>An optional second height field used for lines. When using two height fields, each line will start at the first height and end at the second (sloped).</para>
        /// <para>用于线条的可选第二个高度字段。使用两个高度字段时，每条线将从第一个高度开始，到第二个高度（倾斜）结束。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("To Height Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _to_height_field { get; set; } = null;


        public FeatureTo3DByAttribute SetEnv(object XYDomain = null, object XYResolution = null, object XYTolerance = null, object ZDomain = null, object ZResolution = null, object ZTolerance = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object outputCoordinateSystem = null, object outputZValue = null, object workspace = null)
        {
            base.SetEnv(XYDomain: XYDomain, XYResolution: XYResolution, XYTolerance: XYTolerance, ZDomain: ZDomain, ZResolution: ZResolution, ZTolerance: ZTolerance, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, outputCoordinateSystem: outputCoordinateSystem, outputZValue: outputZValue, workspace: workspace);
            return this;
        }

    }

}